<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>给各个作用域的JavaBean的长和宽赋值</title>
</head>
<body>
	<!-- page范围JavaBean赋值 -->
	<jsp:useBean id="rectangle" class="bean.Rectangle" scope="page"></jsp:useBean>
	<jsp:setProperty property="*" name="rectangle" />

	<!-- request范围JavaBean赋值 -->
	<jsp:useBean id="rectangle2" class="bean.Rectangle" scope="request"></jsp:useBean>
	<jsp:setProperty property="*" name="rectangle2" />

	<!-- session范围JavaBean赋值 -->
	<jsp:useBean id="rectangle3" class="bean.Rectangle" scope="session"></jsp:useBean>
	<jsp:setProperty property="*" name="rectangle3" />

	<!-- application范围JavaBean赋值 -->
	<jsp:useBean id="rectangle4" class="bean.Rectangle" scope="application"></jsp:useBean>
	<jsp:setProperty property="*" name="rectangle4" />
</body>
</html>